Add thematic C++ code counting script and report (16.01.2026) #583
+458
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Implements automated thematic code counting for ThemisDB codebase per issue #581. Provides granular visibility into code distribution across architectural themes and components.
Type of Change
Related Issues
Relates to #581
Changes Made
Script (
count_thematic.py)Report (
CODE_COUNT_REPORT_20260116.md)./src(36 themes, 178,803 lines),./include(38 themes, 96,910 lines)./include/themis(6 files, 1,027 lines)Key Insights
Top 5 themes by LOC:
Testing
Test Environment
Test Results
Test Commands
Checklist
Code Quality
Documentation
Branch Strategy Compliance
developfor features,mainfor releases/hotfixes)feature/,bugfix/,hotfix/,release/)mainordevelopPerformance Impact
Performance Notes:
Native Python file I/O used instead of subprocess for better security and reduced overhead. Script completes full repository scan in ~30 seconds.
Breaking Changes
None.
Security Considerations
Security Improvements:
wc -lwith native file reading)Additional Notes
Script designed for periodic execution to track codebase growth metrics. Report filename includes date stamp for versioning. Extensible to additional file types or directory structures.
Screenshots/Logs
For Maintainers:
Review Checklist
Merge Strategy
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.